package com.kaifamiao.month04.day11;

public class Demo02 {

    public static void main(String[] args) {
//        System.out.println(Character.toString("$123".charAt(0)).matches("[$]+"));
//        String str = "$_12_3";
//        System.out.println(str.matches(".*[0-9]+"));
//        System.out.println(str.matches("\\w*[_]*[$]*[0-9]+"));
//        System.out.println(str.matches("\\w*[0-9]*[_]*[$]*\\w*[0-9]*[_]*"));
//        System.out.println(str.matches("\\w*[$]*[_]*[0-9]*[_]*"));

        System.out.println("1".matches("[a-z]*[A-Z]*"));
    }
}
